package edu.sctu.practice.class01.nieyu.test.test10;

/**
 * Created by Administrator on 2015/10/22.
 */
public class Construct {

    public Construct(int a, int b) {

        System.out.println("较大值为：" + (a > b ? a : b));

    }

    public Construct(double num1, double num2, double num3) {

        System.out.println("三个数的乘积为：" + num1 * num2 * num3);

    }

    public Construct(String a, String b) {

        if (a.equals(b)) {
            System.out.println("两个字符串相同。");
        } else {
            System.out.println("两个字符串不同。");
        }
    }
}
